package com.example.icongyou.bean;

import com.google.gson.annotations.SerializedName;

public class StudentCourse {

    @SerializedName("id")
    private Integer id; // 选课记录ID (主键)

    @SerializedName("studentId")
    private String studentId;

    @SerializedName("courseId")
    private String courseId;

    @SerializedName("score")
    private Double score; // 使用 Double 或 String 对应后端的 BigDecimal

    @SerializedName("status")
    private String status; // 选课状态 (e.g., "enrolled", "completed")

    // 完整的构造函数 (从服务器获取数据时使用)
    public StudentCourse(Integer id, String studentId, String courseId, Double score, String status) {
        this.id = id;
        this.studentId = studentId;
        this.courseId = courseId;
        this.score = score;
        this.status = status;
    }

    // Getters and Setters (省略部分，仅列出关键)
    // ...
    public Integer getId() { return id; }
    public String getStudentId() { return studentId; }
    public String getCourseId() { return courseId; }
    public Double getScore() { return score; }
    public String getStatus() { return status; }
    // ...
}
